import { i18nRender } from '../../locales'
const weixinRoutes = [
  {
    path: '/wx',
    name: 'wx',
    component: () => import(/* webpackChunkName: 'weixin' */ '@/views/weixin/index.vue'),
    meta: { title: i18nRender('all.autotext1338') },
    children: [
      {
        path: '/wx/invite',
        name: 'WXInvite',
        component: () => import(/* webpackChunkName: 'weixin' */ '@/views/weixin/invite.vue'),
        meta: { title: i18nRender('all.autotext1338') }
      },
      {
        path: '/wx/invite-failed/:closedType',
        props: true,
        name: 'WXInviteFailed',
        component: () => import(/* webpackChunkName: 'weixin' */ '@/views/weixin/invite-failed.vue'),
        meta: { title: i18nRender('all.autotext1338') }
      },
      {
        path: '/wx/invite-success',
        name: 'WXInviteSuccess',
        component: () => import(/* webpackChunkName: 'weixin' */ '@/views/weixin/invite-success.vue'),
        meta: { title: i18nRender('all.autotext1338') }
      }
    ]
  }
]

export default weixinRoutes
